//请求登录头
export interface LoginRequest{
  username:string,
  password:string
}
//公共响应变量
 interface Response{
  success:boolean,
  code:string,
  message:string
}
//登录响应
export interface LoginResponse {
  token:string,
  user:User
  expiration:Date
  status:number
}

interface User{
  id:string,
  userName:string,
  role:string[]
}

// interface LoginResponseData {
//   token:string
// }
//获用户信息响应
export interface UserInfoResponse extends Response{
  data:userInfoResponseData
}
interface userInfoResponseData {
  router:string[],
  buttons:string[],
  roles:string[],
  name:string,
  avatar:string
}
//退出响应
export interface LoginOutResponse extends Response{
  data:any
}
